package com.spark.lola.controller;

import com.spark.lola.support.common.util.ResponseBean;
import com.spark.lola.support.wms.configuration.WmsProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: DengYeJun
 * @Date: 2020/4/26 11:00
 */
@RestController
@RequestMapping("/api/pub")
public class PubController {
    @Autowired
    private WmsProperties wmsProperties;

    /**
     * 返回系统配置
     * @return
     */
    @RequestMapping("/conf")
    public ResponseBean conf(){
        return ResponseBean.success(wmsProperties);
    }
}
